package com.topisv.tms.entity.stock;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.topisv.tms.entity.Customers;
import com.topisv.tms.entity.IdEntity;

/**
 * 总仓库存视图
 *  Date          Author       Version       Description
 * ----------------------------------------------------------
 *  2015-5-27      CC            1.0           Create
 */
@Entity
@Table(name = "view_main_cus_stock")
public class ViewMainCusStock extends IdEntity{

	private static final long serialVersionUID = 1L;

	private String warehouseCode;

	private Customers customer;

	private String sku;

	private Integer salesNum;

	private Integer unusedNum;

	private Integer orderNum;

	private Integer lockedNum;

	private Integer transportNum;

	private Integer airNum;

	private Integer totalNum;

	private Integer safeNum;

	private String bar;

	private String spec;

	private String goodsName;

	private Long safeId;
	private String mainWarehouseCode;

	public String getMainWarehouseCode() {
		return mainWarehouseCode;
	}

	public void setMainWarehouseCode(String mainWarehouseCode) {
		this.mainWarehouseCode = mainWarehouseCode;
	}

	public String getWarehouseCode() {
		return warehouseCode;
	}

	public void setWarehouseCode(String warehouseCode) {
		this.warehouseCode = warehouseCode;
	}
	@ManyToOne
	@JoinColumn(name="customer_code",referencedColumnName="customer_code")
	public Customers getCustomer() {
		return customer;
	}

	public void setCustomer(Customers customer) {
		this.customer = customer;
	}

	public String getSku() {
		return sku;
	}

	public void setSku(String sku) {
		this.sku = sku;
	}

	public Integer getSalesNum() {
		return salesNum;
	}

	public void setSalesNum(Integer salesNum) {
		this.salesNum = salesNum;
	}

	public Integer getUnusedNum() {
		return unusedNum;
	}

	public void setUnusedNum(Integer unusedNum) {
		this.unusedNum = unusedNum;
	}

	public Integer getOrderNum() {
		return orderNum;
	}

	public void setOrderNum(Integer orderNum) {
		this.orderNum = orderNum;
	}

	public Integer getLockedNum() {
		return lockedNum;
	}

	public void setLockedNum(Integer lockedNum) {
		this.lockedNum = lockedNum;
	}

	public Integer getTransportNum() {
		return transportNum;
	}

	public void setTransportNum(Integer transportNum) {
		this.transportNum = transportNum;
	}

	public Integer getAirNum() {
		return airNum;
	}

	public void setAirNum(Integer airNum) {
		this.airNum = airNum;
	}

	public Integer getTotalNum() {
		return totalNum;
	}

	public void setTotalNum(Integer totalNum) {
		this.totalNum = totalNum;
	}

	public Integer getSafeNum() {
		return safeNum;
	}

	public void setSafeNum(Integer safeNum) {
		this.safeNum = safeNum;
	}

	public String getBar() {
		return bar;
	}

	public void setBar(String bar) {
		this.bar = bar;
	}

	public String getSpec() {
		return spec;
	}

	public void setSpec(String spec) {
		this.spec = spec;
	}

	public String getGoodsName() {
		return goodsName;
	}

	public void setGoodsName(String goodsName) {
		this.goodsName = goodsName;
	}

	public Long getSafeId() {
		return safeId;
	}

	public void setSafeId(Long safeId) {
		this.safeId = safeId;
	}

}
